export const searchItemList: Array<SuperSearch.SearchItem> = [
  {
    type: "input",
    label: "预报单号",
    keyName: "preOrderNoList",
    placeholder: "支持批量(空格/逗号隔开)"
  },
  {
    type: "input",
    label: "运单号",
    keyName: "waybillNumList",
    placeholder: "支持批量(空格/逗号隔开)"
  }
];

// 列表
export const tableColumn: Array<SuperTable.TableCoulmnItem | SuperTable.NestTableColumnItem> = [
  {
    field: "checkbox",
    type: "checkbox",
    minWidth: "50"
  },
  {
    field: "preOrderNo",
    title: "预报单号",
    minWidth: "140"
  },
  {
    field: "status",
    title: "发货状态",
    minWidth: "90",
    renderSlot: "status"
  },
  {
    field: "shippingMethod",
    title: "预报单类型",
    minWidth: "120",
    formatter: ({ cellValue }: any) => {
      if (String(cellValue) === "0") return "上门取件";
      else if (String(cellValue) === "1") return "自送入仓";
      else return "-";
    }
  },
  {
    field: "preOrderApplyTime",
    title: "预报日期",
    minWidth: "135",
    formatter: "formatDate"
  },
  {
    field: "totalWaybillNumber",
    title: "票数",
    minWidth: "90"
  },
  {
    field: "totalItemNumber",
    title: "件数",
    minWidth: "90"
  },
  {
    field: "driverUserId",
    title: "司机信息",
    minWidth: "90",
    renderSlot: "driverUserId"
  },
  {
    field: "preOrderApplyer",
    title: "预报人",
    minWidth: "90"
  },
  {
    field: "action",
    title: "操作",
    minWidth: "220",
    renderSlot: "action"
  }
];
